package com.lzx.iteam.widget;


import android.os.Parcel;
import android.os.Parcelable;

public class PersonVO implements Parcelable
{
    public long id;
    public String number;
    public String name;
    public int hasName;
    
    public PersonVO() {
    }
    
    public PersonVO(Parcel pv){
        this.id = pv.readLong();
        this.number = pv.readString();
        this.name = pv.readString();
        this.hasName = pv.readInt();
    }
    @Override
    public int describeContents() {
        return 0;
    }
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(number);
        dest.writeString(name);
        dest.writeInt(hasName);
    }
    
    public static final Creator<PersonVO> CREATOR = new Creator<PersonVO>() {

        @Override
        public PersonVO createFromParcel(Parcel source) {
            return new PersonVO(source);
        }

        @Override
        public PersonVO[] newArray(int size) {
            return new PersonVO[size];
        }
    };
}
